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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

which method to use

(0) ShareShare
ReportReport
Posted on by 2,985

Hi All,

In a form there are 5records in the grid which has no button control, I am modifying 2fields in the grid its calling two times the update method.

My requirement is whenever the update happened on the grid it should send the trigger ,but as of now its sending two triggers .

Which method I need to override to send single trigger.(so far 2records are creating in temp table instead I need to store 1 record).

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Pravasti,

    Are you updating two fields in the same record and the table update is getting triggered on each modification?

  • Pravasti AK Profile Picture
    2,985 on at

    Updating single fields in 2 records.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Whenever you modify the records and move to a different record, table update will be called. Are you trying to create a single record in the temp table every time you open the form and make changes (to a single record or multiple records)?

  • Pravasti AK Profile Picture
    2,985 on at

    Exactly, I am trying out that option

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    I don't think any table method will work in that scenario. You can use the form > close method though. You can declare a boolean variable in the form class declaration. You can set this variable to true anytime you update a record in datasource > write method. In the form close method, you can write a condition to check for the value of the variable and write into the temp table if it is true.

  • Pravasti AK Profile Picture
    2,985 on at

    If we place the logic in close method of a form, Will that decrease the performance.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Since this is a single record being written, I don't think there will be a decrease in the performance. I am not sure how else you can achieve this requirement.

  • Pravasti AK Profile Picture
    2,985 on at

    That is the reason behind I posted in the forum. I tried out in close method but not sure will it affect in anycast.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans