web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Use a lookup field in portal web form step condition?

(0) ShareShare
ReportReport
Posted on by 72

I am setting up a Web Form in a Dynamics customer self-service portal, the web form must have multiple steps and flow through the steps based on certain conditions.  For example I am trying to set up a condition step after step one and check the value of a lookup field.  Let's say the lookup field I want to check is the case subject field, if a specific subject is chosen I want to go to step 2, otherwise I will skip to step 3.  How would I write the condition to check it?  I've seen the standard Microsoft documentation and it only gives very basic examples with nothing about lookup fields.

  • Verified answer
    LeoAlt Profile Picture
    16,341 Moderator on at

    Hi partner,

    Please refer to my step:

    pastedimage1585032429839v1.png

    Use format : [Lookupfieldname] = recordID.

    In my case, I create a condition step in my web form, if the account primary contact is not Datum Corporation(recordID is 2490FBFD-5A68-EA11-A811-000D3A579CA1), then redirect the webform to Google page.

    And then I choose another contact as my primary contact in portal and then I clicked on "Next", the page redirected to Google which means the condition worked well.

    Hope it helps.

    Best Regards,

    Leo

  • AK3800 Profile Picture
    72 on at

    That worked!  it looks like I just needed the correct syntax.  Kind of odd that it would take a guid without quotes, brackets or something, I wasn't expecting that.  Thank you!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
11manish Profile Picture

11manish 48 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 45

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans