Skip to main content

Notifications

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).

  • Pravasti AK Profile Picture
    2,985 on at
    RE: which method to use

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

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: which method to use

    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
    RE: which method to use

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

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: which method to use

    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
    RE: which method to use

    Exactly, I am trying out that option

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: which method to use

    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
    RE: which method to use

    Updating single fields in 2 records.

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: which method to use

    Hi Pravasti,

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,033 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,854 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans