Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Unified Service Desk - Data Parameter

Posted on by 235

Hi

I have noted that there are some data parameters that are not getting updated in Data parameters tab ($Context, $Entity etc) in debugger because of which my condition is failing every time. The fields are new custom fields that I created? I was thinking all the fields would be copied to data parameter. These two new fields not only appear in $context but also does not appear in $customentity. The entity is ofcourse open in the session and I can see the entity $entity in data parameter with other fields but not these two new fields

What I have also noted is that when these fields are updated atleast once then they appear in data parameters? Any Ideas or help here please

Thanks

Mohan

  • Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Unified Service Desk - Data Parameter

    I am glad it helped.

    Following document will give you complete details about replacements keys,

    docs.microsoft.com/.../use-replacement-parameters-configure-unified-service-desk

  • Suggested answer
    Mohan Prasad MAni Profile Picture
    Mohan Prasad MAni 235 on at
    RE: Unified Service Desk - Data Parameter

    Thanks Faran, that did the trick. I just added an or condition to check if it is either false or null and it works for both the case

    "[[$Context.MyCheckBoxValue]+]" || "[[$Context.MyCheckBoxValue]+]"=="false"

    So that plus sign is for checking if the value is present in data parameter or not...  Any references where I can understand all the values in between the two Square bracets? There are "g"s and "+" in that too for some of them!!

  • Verified answer
    Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Unified Service Desk - Data Parameter

    Well in that case what you can do is check for the data parameter key if it exists or not.

    For that you need to put a + sign in between the closing tags of replacement parameter like this,

    [[$Context.MyCheckBoxValue]+]

    if it returns null which means that this key does not exist than it means it is returning false and if it returns true then it means checkbox is selected.

    Hope it helps

  • Mohan Prasad MAni Profile Picture
    Mohan Prasad MAni 235 on at
    RE: Unified Service Desk - Data Parameter

    Yes, so only when there is a True to the value, we open the record and mark it as yes. By default we have set it to be no. So that means we dont have to modify any values assuming it will be no all the time. Records like this never get picked up in data parametes as I assume the system things they are blank values but they are not blanks but they are Checkbox=false

  • Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Unified Service Desk - Data Parameter

    So you mean to say only when the field is checked that is when the data parameter value appears as true. In case of false it never appears?

  • Mohan Prasad MAni Profile Picture
    Mohan Prasad MAni 235 on at
    RE: Unified Service Desk - Data Parameter

    The fields are Checkbox and hence if they are blank that means they are Set to false and we trigger actions when it is set to false. This condition fails. How do we handle this issues then? Thanks very much for response

  • Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Unified Service Desk - Data Parameter

    Okay if there are no values in your custom fields than they will not appear until you put values on those field. In data parameters only fields that has some values associated to them appears.

  • Mohan Prasad MAni Profile Picture
    Mohan Prasad MAni 235 on at
    RE: Unified Service Desk - Data Parameter

    Yes, Many times but the fields do not appear on the data parameters.

    Also, I noticed that for records where the value is present in these new fields they become visible. For existing data where there are no values for these fields the fields dont appear in data parameters.

    Looks like after adding the new fields, if the data has not been modified or updated in the new fields they dont appear in Data parameters.

  • Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Unified Service Desk - Data Parameter

    Have you tried to refresh the data parameters after the entity has been loaded?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans