Search notes:

Power Query M formula language standard library: Diagnostics.ActivityId

Diagnostics.ActivityId() returns a UUID (or GUID) that is unique for the currently-running evaluation. An expression that is evaluated with Expression.Evaluate() is considered to be executed in the same evaluation as its parent. Thus, in the following example guid, same_guid and evaluated_guid all evaluate to the same value:
[
   guid           =                      Diagnostics.ActivityId()           ,
   same_guid      =                      Diagnostics.ActivityId()           ,
   evaluated_guid = Expression.Evaluate("Diagnostics.ActivityId()", #shared)
]
Github repository about-Power-Query-Formula-M, path: /standard-library/Diagnostics/ActivityId/eval.M

See also

The Power Query standard library

Index