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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Patch is not working in Forall loop

(0) ShareShare
ReportReport
Posted on by 8

Hello,

For me for some records below code is not working for some record it works. I am doing simple patch as below but somehow LoopUp or Filter is not fetching record, surprisingly for some record it works but for some it doesnt. I also tried to store same value to hidden label (ex label1.Text)in grid but same issue

ForAll(
Gallery1.AllItems,
Patch(D365Entity1,
First(Filter(D365Entity1, BatchText = ThisRecord.BatchText)),
{Column1: "TestValue", Column2: "test"});
);
or
ForAll(
Gallery1.AllItems,
Patch(D365Entity1,
First(Filter(D365Entity1, BatchText= label1.Text)),
{Column1: "TestValue", Column2: "test"});
);

If i give some hard code value to ThisRecord.BatchText= "B123" then it works.

ForAll(
Gallery1.AllItems,
Patch(D365Entity1,
First(Filter(D365Entity1, BatchText = "B123")),
{Column1: "TestValue", Column2: "test"});
);
can someone help why it is not able ot pick that value?

also i tried to store same value in temporary collection but i can see values of ThisRecord.Batchtext and Label1.Text also but some how patch is not picking up.

 

 

Thanks & regards,

Keval
@RezaDorrani, @Pstork1  can you please guide,thanks.
@

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
ParthPatel249 Profile Picture

ParthPatel249 64

#2
11manish Profile Picture

11manish 48 Super User 2026 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 44 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans