Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-customProperties syntax issue #36

Closed
theLaciBOY opened this issue Jan 19, 2018 · 4 comments
Closed

-customProperties syntax issue #36

theLaciBOY opened this issue Jan 19, 2018 · 4 comments

Comments

@theLaciBOY
Copy link

Hello,

I encountered issue when trying to create a new stream or data connection with custom property defined. Based in the help command
New-QlikDataConnection [[-name] ] [[-connectionstring] ] [[-type] ] [-customProperties <string[]>] [-tags <string[]>] [-username ] [-password ] []

I tried PS C:\windows\system32> New-QlikDataConnection -name CLI -connectionstring "c:\temp" -type folder -customProperties "CLI" but always ended with Bad Request
Invoke-RestMethod : The remote server returned an error: (400) Bad Request.

No matter what syntax I am using I am getting Bad Request when trying to define Custom Property via CLI.

Thanks for any comments here. The tool is awesome.
Kind Regards
Laci

@MiBrue
Copy link

MiBrue commented Feb 6, 2018

Hi,

you should use
-customProperties @("Propertyname=PropertyValue")

So, if your CustomProperty is named "AppName" and the choiceValues are
"Finance"
"Marketing"
"Support"

and you want to assign the Property with the value "Finance" than

-customProperties @("AppName=Finance")

regards
Michael

@theLaciBOY
Copy link
Author

Thanks, working like a charm!

Keep Qliking
Cheers,
Laci

@knightriderX3
Copy link

Hi Micheal,

Can you please help with the syntax when we have to update(append) to the customProperty, say inlude Marketing also in the above example?

Best Regards,
K

@ZeidS
Copy link

ZeidS commented Jul 17, 2018

Hi knightriderX3,

Try this
-customProperties @("AppName=Finance","AppName=Marketing")

Best regards,
Zeid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants