Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Dynamics Data Action issue

    Posted 05-09-2019 17:06
    No replies, thread closed.
    Hello,

    I can't get the information set in Dynamics when it comes to a set option type field.
    I added a custom field in Dynamics called Civility which is an Option set containing different options : Mr, Mrs, Doctor ....
    I can only retrieve the integer value but not the label.

    In the request in JSON, I'm limited to the primitive types : string, integer, null, boolean.


    any ideas to how to get the string value Mr, Mrs..  ?

    Yours 





    #ArchitectureandDesign
    #DigitalChannels
    #Implementation
    #Integrations

    ------------------------------
    Charaf Eddine Chemlal
    Dimension Data France
    ------------------------------


  • 2.  RE: Dynamics Data Action issue

    Posted 05-20-2019 11:25
    No replies, thread closed.
    Hey @Richard Schott

    Any chance you could help with this question?

    Thanks,

    Matt​

    ------------------------------
    Matt Lawson
    Genesys - Employees
    Online Community Manager
    ------------------------------



  • 3.  RE: Dynamics Data Action issue

    Posted 05-20-2019 12:48
    No replies, thread closed.
    Hello @Matt Lawson,

    You need to add a header to your Data Action Request in order to get the string value of the Option Set not the integer.

    the header : "Prefer": "odata.include-annotations=\"OData.Community.Display.V1.FormattedValue\"".





    Hope that helps !

    Yours

    ------------------------------
    Charaf Eddine Chemlal
    Dimension Data France
    ------------------------------



  • 4.  RE: Dynamics Data Action issue

    Posted 05-20-2019 11:39
    No replies, thread closed.

    What does your action configuration look like? 

    The optionSet properties for Dynamics are a little odd, in that the value is structured to return an integer, but the description or name should return the string associated with that value: https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt788637%28v%3dcrm.8%29  I would think that modifying your config to point to either dynamicpropertyoptionname or dynamicpropertyoptiondescription should yield what you're looking for.



    ------------------------------
    Richard Schott
    Genesys - Employees
    ------------------------------