How to pass arguments(XML) while invoking a workflow

activities
arguments
invoke
xml

#1

LaunchWebsite.xaml (8.7 KB)
Main.xaml (8.0 KB)
ReadConfiguration.xaml (6.0 KB)

Hi, I have 3 Xamls

  1. Main
  2. ReadConfiguration
  3. Launch Website

ReadConfiguration: Inside this xaml, i am reading a text file and storing its value in Xdoc variable(used deserialize xml).

Launch website: Here i am invoking Readconfiguration.xaml and i want to pass the value from that xml(a website url) to the Open browser activity in “Launch website.”

When i ran i am getting “Try catch -Launch : Object reference not set to an instance of an object.” (NullReference exception)

Can some one help me out here to solve this?

Thanks - Sudhakar


#2

Hi @SudhakarAs,

I think you are getting "Try catch -Launch : Object reference not set to an instance of an object.” because of the default value you have assigned to the strSiteurl .

When the workflow is invoked, xdConfig is a Null reference.

Try to assign strSiteurl value after getting xdConfig.

Regards,
Susana