Get Assignment Role For Folder By Name Or Id
- 30 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Get Assignment Role For Folder By Name Or Id
- Updated on 30 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 5.12.0 |
Location | System > Assignment |
The Get Assignment Role For Folder By Name Or Id step returns the Assignment Role data for the specified Folder.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
Folder Id | The Id of the desired Folder | String |
Role Name Or Id | Allows the user to specify the Assignment Role name or Id of the Assignment Role to retrieve Assignment Data for | String |
Outputs
Property | Description | Data Type |
---|---|---|
Output | List of the specified Assignment Role data | AssignmentRole |
Example Inputs and Outputs
Folder Id | Role Name Or Id | Output |
---|---|---|
08da6f2e-eafc-755c-1f24-2223a4075e8 | Executive | List of Assignment Role data |
08da6f2e-eafc-755c-1f24-2223a4075e8 | Null | EXCEPTION MESSAGE |
Null | Executive | EXCEPTION 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?