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...
Suggested Answer

Else statement in workflow on demand for Portal Entity list workflows actions get ignored and returned an error

(0) ShareShare
ReportReport
Posted on by 44

Hi,

In my entity list I have configured a workflow on demand. It contains one if/else condition and I am noticing that actions defined in else statement get ignored in portal if condition is false.

There is only a cancel workflow action in else statement.

I just get an error saying : Sorry, an issue occured. Try again and if problem persists, contact your webadmin.

How can I execute actions in else statement ? 

Regards,

Alex

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

    Hi Partner,

    I tried to use If and otherwise condition in workflow and trigger it on demand in portal, and all the conditions ran correctly.

    You could try the following points.

    1.Use "Condition Branch" after "If" to add your "Else" action.

    pastedimage1602224374197v1.png

    pastedimage1602224384182v2.png

    2.Since the workflow is on-demand, you could trigger it in D365 directly to check the "else" condition and monitor it in System Jobs so that we will know if the issue cased by the condition or the cancel workflow action.

    If the issue still exists, please share more details so that we could help you better.

    Regards,

    Leo

  • Alex519 Profile Picture
    44 on at

    Hi Leo,

    Indeed it is working with a conditional branch when the called step is update record. However it is not working (for me at least) when the called step is "stop workflow with cancel status". In portal, it only returned me an error message written with some weird letters like @#~ but the general meaning of message is about calling an administrator

    Workflow purpose is to display error message for users when criterias are not met on a specific webpage (in else statement).

    I have added a workflow action button in entity list options tab. That workflow when it has ended will redirect the user in another webpage (referencing same entity) to submit information. But I gets 2 errors, one is coming from workflow and the second it is displaying a message that record can't be find like the id hasn't been provided to the final webpage

    If you need more details I can provide.

    Regards

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Travis South Profile Picture

Travis South 54

#2
11manish Profile Picture

11manish 37 Super User 2026 Season 2

#3
ParthPatel249 Profile Picture

ParthPatel249 33

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans