Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

assembly call from real time workflow

(0) ShareShare
ReportReport
Posted on by 76

Hello,

I have assembly, that update an attribute of Entity.
fragment of code
var entity = new Entity("name", entityId);
entity ["attrName"] = newValue
_service.Update(entity);

And I call this assembly in realtime workflow(not background)
But when I call workflow, I don't see any result, only after Refresh page.
Why ?

Thanks.

*This post is locked for comments

  • Kokulan Profile Picture
    18,054 on at
    RE: assembly call from real time workflow

    Is this workflow runs on main entity or related entity? Could you share screenshot of the main workflow triggers

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: assembly call from real time workflow

    I gues this behaviour happens on new unified interface (sometimes)

  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: assembly call from real time workflow

    Hi Marina,

    I set my process as child process and remove all the tirgger conditions as yours, and I added a parent real time workflow to trigger it, then when the parent workflow ran, the child process also ran automatically and the result showed in the form without refresh the form.

    pastedimage1570506023092v1.png

    pastedimage1570506041449v2.png

    It's a very strange situation. Could you share what's the parent process trigger condition? Does the process need to be triggered by refresh the form?

    In my case, I set the parent process trigger condition when creating the account records.

    Hope it helps.

    Best Regards,

    Leo

  • sardar ahmed Profile Picture
    520 on at
    RE: assembly call from real time workflow

    Hi Marina,

    This seems to be a known issue with MS CRM, it works some times and it doesn't other times.

  • Marina Karapetyan Profile Picture
    76 on at
    RE: assembly call from real time workflow

    Hi Leo,

    Here is my workflow. It is called as child process from another workflow(again real time).

    I see the result of my aseembly, but only after refresh.

    4857.workflow.PNG

  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: assembly call from real time workflow

    Hi partner,

    Since you set the workflow as realtime workflow, what's the tirgger condition did you set?

    For example I created a new realtime workflow and I want to trigger it when I changed the user name in Account entity.

    1. I set the conditon to "After".

    pastedimage1569836091242v1.png

    And when I updated the user name and saved the form, the workflow ran automatically.

    pastedimage1569836137144v2.png

    In general, realtime workflow should run immediately after the conditon has been triggered.

    Could you kindly share your condition to us so that we could help you better?

    Hope it helps.

    Best 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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans