i have created one assest in orchestrator as text type, where i pased folder location(e.g C\Newfolder), then taken get assest activity and passed that assest name and created a variable to store it and trying to check if folder is existing or not. but it throws error type conversion from string to bool. if am i am changing the type assest to bool(since it is not taking any value in bool type)and trying to check same folder, it gives me wrong output.
how to rsolve this.
→ Take the asset value by using the Get Asset activity and create an output for the Get Asset activity.
→ Pass the output of the Get Asset activity as the input to the Folder Exists activity.
->Create a variable as the output of the Folder Exists activity and pass that value as the condition in the IF activity as shown below.
When using the Get asset value the output will be in the string value and while passing the output into the Folder Exists we are able to create an output variable for the folder exists and the folder exists activity gives the output as the Boolean variable so now the Boolean variable can be passed into the IF condition.
yes, same one i am using, so i used assest type as bool and passed same assest name in get assest and stored in output variable as as string, but how to check the folder is exist or not if we have not defined the folder path in orchestrator as bool type doesn’t accept any value.
i have one more issue , if file folder is not there then i need toc reate it, but i want to make it dynamically not static.
how to achieve it, should i create another assest?
Change the type from Boolean to String and then Pass the value as per your requirement. Once you store the value please share the screenshot and I will share the workflow for you.