Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

embedded canvas app + Issue with patch not updating the null values

(0) ShareShare
ReportReport
Posted on by 20

Hi All,

 

I have created an embedded canvas app in model driven CRM Form.

 

I am updating my crm form values through the embedded canvas app -

 

I added the below formula on "OnDataRefresh" property of "ModelDrivenFormIntegration" so that data is updated when i hit Save on CRM Form -

 

Patch('DataSourceName', ModelDrivenFormIntegration.Item,
{
    'Attribute 1' :Value(DataCardValue3.Text),
     'Attribute 2' :Value(DataCardValue4.Text),

}
);

 

 

This works fine when i update the value of the fields such as from '600' to '700'. However the issue arises when i remove the values from the field such as from ''600" to blank " ". When the field value is blank, it does not update the  ModelDrivenFormIntegration.Item and shows the previous value again as soon as i hit Save. 

 

Also tried turning on "Formula Level Error Management", it did not work, also with this setting on my formulas stopped working 

 

Kindly suggest any help would be appreciated.

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

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans