Skip to main content

Notifications

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

Posted on by 40

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

  • Alex519 Profile Picture
    Alex519 40 on at
    RE: Else statement in workflow on demand for Portal Entity list workflows actions get ignored and returned an error

    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

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Else statement in workflow on demand for Portal Entity list workflows actions get ignored and returned an error

    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

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans