How to get data source and transformation profile information from workflow profile properties?

MK
New Contributor

Hi Team,

how can we get data source, transformation rule profile and other information of workflow profile. Trying to get it from workflow profile attributes using the index but not able to find index for data sources. Can you please help me with this?

 

Thanks,

Manju K

2 ACCEPTED SOLUTIONS

JackLacava
Community Manager
Community Manager

ParserLayouts and the other Parser* tables. Transformation rules are also available in the api from Brapi.Import.Metadata.*. There are other bits in api.Parser if you're inside an actual Parser rule.

View solution in original post

JackLacava
Community Manager
Community Manager

All the indexes are in Sharedconstants.WorkflowProfileAttributeIndexes, use IntelliSense to look them up and then you can use them like this:

brapi.Workflow.Metadata.GetProfile(si, "rootprofile.import").GetAttribute(myScenarioTypeId, sharedconstants.WorkflowProfileAttributeIndexes.TransformationProfile)

The tables concerning rules are the ones named "StageRules*". Please don't modify anything in these tables, just use them to read stuff.

View solution in original post

6 REPLIES 6

JackLacava
Community Manager
Community Manager

All the indexes are defined as constants in SharedConstants.WorkflowProfileAttributeIndexes. So in your case it's Sharedconstants.WorkflowProfileAttributeIndexes.DataSource .

MK
New Contributor

Thank you for the reply.

But how can I get the value of data sources from the key, which table to refer?

MK_0-1710493925138.png

Thanks,

Manju K

JackLacava
Community Manager
Community Manager

ParserLayouts and the other Parser* tables. Transformation rules are also available in the api from Brapi.Import.Metadata.*. There are other bits in api.Parser if you're inside an actual Parser rule.

MK
New Contributor

Thank you.

From where we can get the complete index information?  I also need transformation profile index of workflow.

Thanks,

Manju K

JackLacava
Community Manager
Community Manager

All the indexes are in Sharedconstants.WorkflowProfileAttributeIndexes, use IntelliSense to look them up and then you can use them like this:

brapi.Workflow.Metadata.GetProfile(si, "rootprofile.import").GetAttribute(myScenarioTypeId, sharedconstants.WorkflowProfileAttributeIndexes.TransformationProfile)

The tables concerning rules are the ones named "StageRules*". Please don't modify anything in these tables, just use them to read stuff.

MK
New Contributor

Thanks a lot for the help.