Today , I will be sharing a small code snippet which can be used to get worker which is attached with the current system user.
Here is the code snippet.
UserId currentUserId;
Name workerName;
currentUserId = curUserId();
if (currentUserId)
{
workerName = HcmWorker::findByPerson(DirPersonuser::find(currentUserId).PersonParty).name();
}
Note : curUserId() is system based method which can be used to get current user which is logged in right now.
Subscribe to:
Posts (Atom)
Connect and upload in azure blob with azure key vault using x++
Today, I will be sharing details about file upload in azure blob using azure vault that includes pre requisite and code snippet used to it....
-
Today, I will discussing about how to create a batch job using SysOperationFramework in Dynamics 365 Finance And Operations. Let's sup...
-
Today I will be discussing about how to create batch job through x++. Before going in code lets discuss what are batch jobs. Batch job : ...
-
Today, I will be discussing about one of the common issue related to query creation using query build data source. Let's suppose we ...