Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

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

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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans