Get Assignment Role For Folder By Name Or Id
  • 30 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Get Assignment Role For Folder By Name Or Id

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.12.0
LocationSystem > Assignment

The Get Assignment Role For Folder By Name Or Id step returns the Assignment Role data for the specified Folder.


Properties

Inputs

PropertyDescriptionData Type
Folder IdThe Id of the desired FolderString
Role Name Or IdAllows the user to specify the Assignment Role name or Id of the Assignment Role to retrieve Assignment Data forString

Outputs

PropertyDescriptionData Type
OutputList of the specified Assignment Role dataAssignmentRole

Example Inputs and Outputs

Folder IdRole Name Or IdOutput
08da6f2e-eafc-755c-1f24-2223a4075e8
ExecutiveList of Assignment Role data
08da6f2e-eafc-755c-1f24-2223a4075e8
NullEXCEPTION MESSAGE
NullExecutiveEXCEPTION MESSAGE


Common Errors

Object reference not set to an instance of an object

If the Role Name is empty or null, the step will throw an error.

To correct this, ensure that the Role Name is entered correctly.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Assignment Role For Folder By Name Or Id 1[GetAssignmentRoleForFolderByNameOrId] in flow [Flow 1]: Exception invoking method GetAssignmentRoleForFolderByNameOrId on class AssignmentRoleSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetAssignmentRoleForFolderByNameOrId on class AssignmentRoleSteps
 ---> System.NullReferenceException: Object reference not set to an instance of an object. 
at DecisionsFramework.Design.Flow.CoreSteps.AssignmentRoleSteps.GetRoleByNameOrIdAndFolderId(String folderId, String roleNameOrId
 at DecisionsFramework.Design.Flow.CoreSteps.AssignmentRoleSteps.GetAssignmentRoleForFolderByNameOrId(String folderId, String roleNameOrId)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---



Value cannot be null

If the Folder Id value is null or empty, an error will occur.

To correct this, ensure that the value is mapped or entered correctly.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Assignment Role For Folder By Name Or Id 1[GetAssignmentRoleForFolderByNameOrId] in flow [Flow 1]: Exception invoking method GetAssignmentRoleForFolderByNameOrId on class AssignmentRoleSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetAssignmentRoleForFolderByNameOrId on class AssignmentRoleSteps
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'folderId'
 at DecisionsFramework.ServiceLayer.Services.Assignments.AssignmentService.GetAssignmentRoleInFolder(String folderId, String roleTypeId
 at DecisionsFramework.Design.Flow.CoreSteps.AssignmentRoleSteps.GetRoleByNameOrIdAndFolderId(String folderId, String roleNameOrId
 at DecisionsFramework.Design.Flow.CoreSteps.AssignmentRoleSteps.GetAssignmentRoleForFolderByNameOrId(String folderId, String roleNameOrId)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

Was this article helpful?