Skip to main content

Notifications

Dynamics 365 Community / Forums / Customer Voice forum / Support for "ThisRecor...
Customer Voice forum
Suggested answer

Support for "ThisRecord" in low-code automated plugins

Posted on by
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.
Categories:
  • Suggested answer
    korebreach Profile Picture
    korebreach 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 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

News and Announcements

Forum Structure Changes Coming Soon!

Quick Links

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

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,734 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,021 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans