RE: How do I target the Reallocate Items page using a workflow?

I need to restrict the Reallocate Items to certain roles, so they can see the page but not reallocate items themselves. Is there a way to target Reallocate Items using a workflow, or even a script?

edgarvaldes Beginner Asked on April 9, 2021 in SuiteFlow.
Add Comment
1 Answers

Reallocate item is linked to Sales Order and cannot be done via workflow but with script it can be done:

A User Event script with a Before Load function can be deployed on the ‘Reallocate Items’ record to control access to the page. The sample code below can be used as a guide:

	function userEventBeforeLoadRealloc(){
		if(nlapiGetRole()!=3) // 3 is the internal ID of the administrator role. Specify which roles will be allowed access to the page
		throw nlapiCreateError('ERROR', You are not allowed to access this page');
	}
Advanced Answered on April 13, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.