cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mamzy
Helper I
Helper I

Delay Trigger until ID is populated.

Hi MS,

 

I have a flow where by when a new item is created i have a trigger that automatically populates the ID field. I then have another trigger that sends a Teams message to a group to say a new Item has been added. The ID field is being populated using the following expression within the update item Trigger: concat('BG',formatNumber(triggerBody()?['ID'],'000000'))

 

Problem:

When the teams message sends the ID does not populate in the message. my guess is that it has not been created yet.

 

What is the best solution so the teams message is populated with the ID? is there a way to delay the message teams trigger?

 

Please see screen shot below of the flow.

Mamzy_0-1597920071877.png

 

Help!

2 REPLIES 2
manuelstgomes
Super User II
Super User II

HI @Mamzy 

 

When it's triggered, the ID is already present. The one you're generating is the Term ID.

 

Can you please check in the log if the second step has an input and output expected?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Hi @manuelstgomes,

 

Thanks for getting back to me.

 

I am created the TermID based off of the ID and concatenating BG00000 at the beginning of the ID. see below.

 

Mamzy_0-1597923713050.png

 

I can see from the Log as well that the Term ID is being generated but this then is not present in the team Message. See screen shots below.

Mamzy_1-1597923784631.png

Mamzy_2-1597923833196.png

The [Getting new ID...] is the default message in the TermID column.

 

Please advise why the TermID is not being populated with the TermID being generated. And how do i fix this so that it is.

 

Thanks

Mamzy

 

 

 

 

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,599)