Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Workflow code does not follow permissions that are set

Posted on by Microsoft Employee

Hi All,

I configured a workflow thats work correct at start.
After that i changed something in permissions regarding Sales Header table (36) so that a USER can only see Sales Headers with  Salesperson Code = XXX. With XXX is Salesperson Code for a this particular user .
When the user opens the sales headers List page he only sees his orders. So this is ok. But when he opens the detail page and from there he does a 'Approval request' there is an error in Code unit 1501 Workflow management: This error tells me that there are problems with as security filter and that records out side this filter can not be used. 

The error shows in the function below. 

Can this be a BUG? 

I only want an approval of an order i just succesfully opened. How can that give an permission error? I think the code also loops trough soem order sales orders?

Any help is welcome,

Thanks Patrick

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

EvaluateConditionOnTable(SourceRecordId : RecordID;TableId : Integer;TempBlob : Record TempBlob) : Boolean

RecRef.OPEN(TableId);

IF NOT RequestPageParametersHelper.ConvertParametersToFilters(RecRef,TempBlob) THEN
EXIT(TRUE);

IF RecRef.FINDSET THEN
REPEAT
IF RecRef.RECORDID = SourceRecordId THEN
EXIT(TRUE);
UNTIL RecRef.NEXT = 0;

EXIT(FALSE);

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans