Scenario: Need to filter the Regarding (Advanced Lookup) Tables.
Step 1. Check Lookup schema name
Step 2. Check loaded tables in Lookup
Scenario: Need to filter the Regarding (Advanced Lookup) Tables.
Step 1. Check Lookup schema name
Step 1- Create New Project
In Visual Studio create a new project of type Class Library & select framework version 4.7.1. This might change for future versions.
Step 2 - Add Required Packages
using System;
using System.Activities;
using Microsoft.Xrm.Sdk.Workflow;
Step 3 - Create Class with name of CustomePlugin
namespace Banne.Autonumber.BannePlugins
{
public class CustomePlugin : CodeActivity
{
}
}
Step 4 - Add Input/Output Parameters
using System;
using System.Activities;
using Microsoft.Xrm.Sdk.Workflow;
namespace Banne.Autonumber.BannePlugins
{
public class CustomePlugin : CodeActivity
{
[RequiredArgument]
[Input("Input Text")]
public InArgument<string> InputText { get; set; }
[Output("Word Count")]
public OutArgument<int> CountOfWords { get; set; }
protected override void Execute(CodeActivityContext context)
{
this.CountOfWords.Set(
context,
this.InputText.Get<string>(context).Split(
new char[] { ' ', '\r', '\n' },
StringSplitOptions.RemoveEmptyEntries).Length);
}
}
}
Step 5 - Signing the Assembly
Go to properties then find Signing option. Choose sign the assembly and give key.
Step 6 - Register the Assembly in Dynamics 365
Step 7 - Consuming Custom Workflow Activity in Workflow Process
This workflow calling customeplugin and updating the records
Testing the Workflow
Calling workflow to find the total number of words in Name filed contains1. Lock or unlock field value
2. Get Value in string format
3. To set notification
4. To clear notification
5. To get time
6. To get the difference, we have to use this
7. get selected option set value name
8. to set value on the field
9. To show alert for the user
10. Get active stage name of BPF
11. Get entity name
12. Active BPF ID
13. Get form type
14. To add Custom View
15. Get Lookup
1. Portal Navigation Settings:
-> Go to Web link Sets->add Links (Web Links)
Go to Web Link set-> Links (Web Links)
Output: