Forum Discussion

MK's avatar
MK
New Contributor II
10 months ago

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

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 in...
  • JackLacava's avatar
    10 months ago

    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.

  • JackLacava's avatar
    10 months ago

    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.