Any possibility to get application name from biztalk server

Rahul A 61 Reputation points
2021-02-12T21:20:17.863+00:00

I have 2 Biztalk applications created in Biztalk Admin Console
BizApp1
BizApp2

I have written a custom disassembler and assembler in c#(which will be used for more than 1 biztalk project) . I need to change my logic based on which app BizApp1 or BizApp2 is execute or code being execute under.

Any possibility to get that biztalk app name when the custom disassembler is being execute at runtime.

Thank you!

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
358 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leo Erlandsson 1,656 Reputation points
    2021-02-15T15:05:24.273+00:00

    Hi,

    Try this code:

    BizTalkOperations operations = new BizTalkOperations();
    MessageBoxServiceInstance msgBoxService =
    operations.GetServiceInstance(Service.RootService.InstanceId);
    string application = msgBoxService.Application;

    Add error handling as needed.

    Br,
    Leo


  2. Leo Erlandsson 1,656 Reputation points
    2021-02-16T07:38:00.39+00:00

    Hi,

    Correct, this will only work when called from Orchestration. Otherwise, you'll have to provide the RootID yourself.

    Br,
    Leo

    0 comments No comments