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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

allow to execute Workflows only for Users who created an activity

(0) ShareShare
ReportReport
Posted on by 5

Hi there,

I created an re-open workflow for activity entities (eg. Phonecall). This Workflow should only be executed by the User who created it. I couldn´t find a solution for this. Neither in the Workflow itself nor as a business rule. Even the Ribbon Workbench only allow to have privileges on rules not on a current user base.

So what I need is something like that: if current user equals field value in created by field, then show Button re-open Workflow or let him execute the workflow without any error message. If the current user does not equal the created by field value, than hide the Button or don´t let him execute the Workflow and show error message.

I work on a 8.2 Version and have no clue about scripting

Any suggestions?

I have the same question (0)
  • Suggested answer
    Torrado Profile Picture
    1,270 on at

    Hello,

    You need to configure Enable Rule for that button, to show only when the user is the creator of the activity record.

    Please refer to this post by the Ribbon Workbench author (it has video as well) to understand how the Enable Rules are configured: ribbonworkbench.uservoice.com/.../121427-enable-disable-a-ribbon-button-dynamically-based-o

    You might need to modify and combine the script to get the "Current User Id" compared to the "Created By Id" value.

    Please check this article about how to get the current user for your D365 version: crmorion.blogspot.com/.../how-to-get-current-user-id-in-crm-2013.html

    Hope this helps you,

    Please mark the answer as verified if helpful. That will help others in future.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 76

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 53 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 40 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans