How does one pass a Section Field's field/column value to VB.NET (or C#) via the Infinity SDK?

How does one pass a Section Field's field/column value (say, for example, “ID” as seen in this attached BB CRM page action screenshot) to VB.NET (or C#) code within the Infinity SDK?

So, for example, if one were to have multiple rows within a data list, and we were to pass a column value from the current row (via a page action), how does one refer to this specific Section Field in VB.NET (or C#)?

Thanks, in advance.

003421d71a8ea64620481fd0ab61f513-huge-co

Comments

  • @Binoy S
    Each spec is slightly different, add forms will take that context through the context parameter and an edit form will take it as the ID.

    Either way in the CLR inherited class you will have access to ProcessContext which will have either the ContextRecordID or RecordID properties. You can use that to get whatever value is passed.

  • 5f79ea17b762bf0094009cb5d8b80eb8-huge-20
    ProcessContext available options (#1)
    2ce0544109af772a621056cbda94401d-huge-20
    ProcessContext available options (#2)

    @Nick McGinnis Thank you so much for your response. I'm currently attempting to implement this with a BusinessProcessSpec Infinity SDK spec. Using VB.NET in the corresponding VB file, I tried to access the ContextRecordID or RecordID properties (using ProcessContext), but I don't see those choices available (ContextRecordID or RecordID). Maybe it's in there somewhere, and I have tried to drill through the various options, but somehow the choices are not obvious to me. If it helps to clarify, I'm attaching additional screenshots that indicate some of the options available via ProcessContext. Again, and regardless, thanks so much!

  • @Binoy S
    My apologies, I did not realize you were wanting a business process. Before the business process can run a parameter set needs to be created for it. Then the business process could be run. So I think what you might want to do is instead of starting a business process with the action, use an edit form. Pass in the ID you want and create or update a parameter set with that form, then the post action type can redirect you to the business process status page where it can be started. I hope this makes sense!

  • @Nick McGinnis
    Thank you for your feedback, Nick!

Categories