Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Support for "ThisRecord" in low-code automated plugins

Posted on by 4
Currently, the low-code automated plugins feature cannot be used for most purposes.  An automated plugin can be triggered when a record on a table is created, but interacting with that record cannot be done.  The "ThisRecord" function is not recognized, which is a huge problem.  Using "OldRecord" and "NewRecord" throws an error saying those functions cannot be used as the second parameter of a patch statement.  "Set" does not work (even though it is suggested in the built-in help) either.  Without some way to refer to the record that triggered the plugin, low-code automated plugins are not usable.
  • Suggested answer
    korebreach Profile Picture
    korebreach 4 on at
    Support for "ThisRecord" in low-code automated plugins
    So, apparently ThisRecord works, but only in a certain context.  You can use a "Set" function with "NewRecord" to first tell the plugin you want to reference that record, and THEN you can use ThisRecord to refer to the fields you want to use from the record.
     
    Set(NewRecord.FullName,ThisRecord.FirstName&" "&ThisRecord.LastName)
     
    If I had to guess, that's because until you refer to "NewRecord", the record that was just added is in some sort of "quasi-added" state in the table it's not actually added yet.  Once you refer to "NewRecord", the plugin knows which record you are referring to and knows the fields, allowing you to use ThisRecord.
     
    Microsoft: This might be more straight-forward if ThisRecord simply refers to NewRecord on a create or update in an automated plugin.
  • korebreach Profile Picture
    korebreach 4 on at
    Support for "ThisRecord" in low-code automated plugins
    Note:  There are plenty of online tutorials showing "ThisRecord" working with automated low-code plugins, which show that this function was apparently working at one time.  However, the function now appears to be unrecognized.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans