As of April 17, 2018, this site is now in read-only mode. To start new Blackbaud Developer’s discussions, you will find Developer Discussions in the Blackbaud CRM Community.
To post or respond to Blackbaud Community discussions, you will have to login using a www.blackbaud.com login. Learn how to login here. If you have questions or need assistance, please email email@example.com.
I am executing BusinessProcessLaunch from within a global change and it is working well. Now I need to execute this same function from within a console application. I am getting hung up on the RequestContext that needs to be passed into BusinessProcessLaunch. Has anyone been able to do this from outside of the CRM?
Dim oBusinessProcessLaunchRequest As BusinessProcessLaunchRequest = New BusinessProcessLaunchRequest()
oBusinessProcessLaunchRequest.BusinessProcessID = gBusinessProcessID
oBusinessProcessLaunchRequest.ParameterSetID = gFileID
oBusinessProcessLaunchRequest.ClientAppInfo = Me.RequestContext.ClientAppInfo
Dim oBusinessProcessLaunchReply As BusinessProcessLaunchReply = ServiceMethods.BusinessProcessLaunch(oBusinessProcessLaunchRequest, Me.RequestContext)
It's been a while since I've done that, but I know I've gotten it to work. Try something like this.
Dim header As New ClientAppInfoHeader()
header.ClientAppName = "My new app"
header.REDatabaseToUse = "BBInfinity"
header.TimeOutSeconds = 100
Dim context As New RequestContext(HttpContext.Current, header)