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 :
Power Platform Community / Forums / Power Pages / Portal contact in work...
Power Pages
Answered

Portal contact in workflow

(0) ShareShare
ReportReport
Posted on by 84

Hello all!

I've been trying to get the portal contact which activates an entity list workflow so i can put the Full Name and job name in an email i'm sending to the primary contact of the record i started the workflow on. The workflow it self is really simple because it only sends a single email with a bunch of information about the selected record on the entity list. But it basically has no purpose if i can't get the contacts information.

Is there a way to get the contacts information that i'm not aware of?

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Hi

     

    Just to confirm, you have an entity list and are triggering a workflow action via that list, right?

     

    Does your records from the entity list have a lookup for the Contact? If yes that's how you get the information from the contact, in the workflow you can navigate through lookup's data

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • KD203 Profile Picture
    84 on at

    Hi, @OliverRodrigues ,

    Yes, i have an entity list and im triggering a workflow action through the drop down menu that appears.
    The records i have in the entity list have a connection to a contact which could run this workflow, but there is another type of contacts with different roles and acceses to the records which should be able to run this workflow aswell.

    The problem accurs when i want to differentiate from these two types of contacts - one is related directly with a relationship to the records and the other one can see these records, because they have a relationship to his parent account.

  • Verified answer
    justinburch Profile Picture
    Microsoft Employee on at

    Hi @KD203,

    You won't be able to identify this with the Run Workflow action, and would likely need to go a custom route - an idea would be to change the workflow from being On Demand to being triggered by an update to a field - like a Lookup to Contact, titled something like "Workflow Run By". Then you'd want to see if you can use JavaScript to add a custom button to your list that calls the Preview Feature API (https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-overview) to update the record with the current contact's logged in user.

    This is just one option, but all of the ones I can think of will require some fairly decent dev/customization.

  • KD203 Profile Picture
    84 on at

    Hi @justinburch ,

    Thanks for the help, accepted your answer as the solution.

    Just out of curiosity what would be the more dev/customization variants of making this functional?

  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @KD203,

    Some ideas:

    1. Setup a custom API (if wanting to wait for the Preview feature to become publicly established) using the old-school method, where you create an entity and query for it, intercept the query with a RetrieveMultiple plugin and use "filters" in the query to detail the action required - e.g. retrieve "WorkflowRunner" where new_targetId = GUID of entity, new_actionId = GUID of workflow, createdby = GUID of the contact who ran it. This injects a fake "response" (even though no record exists) of a retrieved record with the status of the actual run. This is not recommended by Microsoft (despite it being used by the product itself in the old Marketing API), but requires 1. no Azure components and 2. no Preview features
    2. Create an Azure based API using the implicit grant flow feature to call the workflow with passed in GUIDs, extracting the contact's info from the bearer token provided for authentication (https://docs.microsoft.com/en-us/powerapps/maker/portals/oauth-implicit-grant-flow)
    3. The method I suggested before, which doesn't require any C#/Azure code but still plenty of code!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard