Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Elmar010
Contributor
Contributor

How can I retreive the label text from option set data type with tMicrosoftCrmInput?

In Talend I receive the value (864640000) instead of the label (Not to plan) by using schema name (hso_salesstatus):

0693p00000BWrYLAA1.pngI also tried the following schama names for this field, but it did work:

_hso_salesstatus

_hso_salesstatus_formatted

_hso_salesstatus_label

_hso_salesstatus_value

My setup in CRM:

0693p00000BWrZsAAL.pngHow can i get the label text instead of the value?

Labels (3)
3 Replies
Anonymous
Not applicable

Hello,

What's CRM version and Authentication are you using? Could you please post your component setting screenshot on community?

Best regards

Sabrina

Elmar010
Contributor
Contributor
Author

Hello Sabrina,

 

My tMicrosoftCrmInput settings are:

  • Authentication Type: ONLINE
  • API Version v2016 (odata)
  • Registered application type: Native App
EricMoss
Contributor
Contributor

Hello,

 

We were confronted to the same problem.

 

We finally found a workaround. We use a tRestClient component to generate a Bearer token and then perform a Get request to retrieve from metadata entity a JSON mapping between value and label for the different optionset fields.

 

0695b00000F7Q8QAAV.png 

URL for the token generation (POST) : https://login.microsoftonline.com/XXX/oauth2/v2.0/token"

 

URL to get JSON mapping (GET) : https://XXX/api/data/v9.1/EntityDefinitions(LogicalName='xxx')/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet($select=Options),GlobalOptionSet($select=Options)"

 

Hope this can help you and other users.

 

Regards,

 

Eric