Dear everyone
I am having difficult trying to solve a specific problem.
I am using Navision to try to retreive some information about a company, either a company has an CVR number, a CPR number or BOTH, it can never be empty for both.
What I need to do is to check first, if the CVR number is filled out, if yes, then use the “Get” activity to retrieve the data (it’s all digits).
If CVR is empty, then go and look at the CPR number and retrive the data (also only digits)
Both CVR and CPR is a string consisting of only digits.
I need to do this with an X amount of companies, for now let’s just say there is 10 companies. I am using a for each loop and looping over my table with the companies name in Navision, one after the other to be able to see they information, hereunder if they have a CPR number or a CVR number.
Now, when I do this, for the first iteration it’s going good, I retrivede 3108782489 as a CVR number since CPR number is empty.
The problem is,that on the next iteration, when I want to retrive either CVR or CPR for the next company than the same data, “3108782489”, is being given which is the old CVR number for the previous company. I suspect this is because of not having dynamic selectors, but I want to hear you guys first.
Down below is the first company:
And down below is the second company but UiPath still returns the old CVR number “3108782489”:
If anyone can shine lights to why I keep on getting returned the old CVR number, then please do let me know. Thanks in advance.
Yours sincerely…
Mr. Bean