Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1465 posts 1887 karma points
    May 17, 2024 @ 14:39
    Gordon Saxby
    0

    Prepopulate FieldMapper in Forms Workflow

    I have created a Forms Workflow and want to add a FieldMapper property.

    I have managed to add the property but would also like to prepopulate it with a set of mappings to be set.

    Something like this: enter image description here

    I tried something like this but it doesn't work:

        public override Dictionary<string, SettingAttribute> Settings()
    {
        var settings = base.Settings();
    
        var x = new List<FieldMapping>();
        x.Add(new FieldMapping
        {
            Alias = "Alias1",
            Value = "",
            StaticValue = ""
        });
        x.Add(new FieldMapping
        {
            Alias = "Alias2",
            Value = "",
            StaticValue = ""
        });
        settings["FieldMappings"].PreValues = JsonConvert.SerializeObject(x);
    
        return settings;
    }
    

    Is it actually possible to prepopulate this list?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies