Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Scribe Help: Dependent optionsets, if else if else condition

(0) ShareShare
ReportReport
Posted on by 244

Hi,

Just wondering for right approach,

I am trying to set an optionset(State) value based on other optionsetvalue(Country)

If Country is 77 set state as 18 else if country is 3 set state as 180 else null

IF((S1=77),18,IF((S1=3),180,null)).

This is failing with error incorrect number of function parameters, incorrect function parameter type. Any help with this?

  • NK Bhairi Profile Picture
    NK Bhairi 244 on at
    RE: Scribe Help: Dependent optionsets, if else if else condition

    Is this not the code?

    IF((S1=77),18,IF((S1=3),180,null))

    And I had tried one more thing as well with select case

    SELECTCASE(S1 , "=77~18 | =3~ 18" )

    S1 is an optionset of Source based on this I am trying to set option set in destination.

    if (S1 == 77 or S1= 3)

    {

    set destination optionset to 18

    }

    else nothing.

  • Ics_rthompsoneu Profile Picture
    Ics_rthompsoneu 74 on at
    RE: Scribe Help: Dependent optionsets, if else if else condition

    If you are able would you please display your code.

    Need more information.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans