Edits history of script submission #6019 for ' Default Arguments in Approval Steps (windmill)'

  • deno
    One script reply has been approved by the moderators
    Ap­pro­ved
    //this assumes the Form tab has a string field named "foo" and a checkbox named "bar"
    
    import * as wmill from "npm:windmill-client@^1.158.2"
    
    export async function main() {
        // if no argument is passed, if user is logged in, it will use the user's username
        const resumeUrls = await wmill.getResumeUrls("approver1") 
    
        // send the resumeUrls to the recipient or see Prompt section above
    
        return {
            default_args: {
                foo: "foo",
                bar: true
            }
        }
    }

    Submitted by hugo697 378 days ago

  • deno
    //this assumes the Form tab has a string field named "foo" and a checkbox named "bar"
    
    import * as wmill from "npm:windmill-client@^1.158.2"
    
    export async function main() {
        // if no argument is passed, if user is logged in, it will use the user's username
        const resumeUrls = await wmill.getResumeUrls("approver1") 
    
        // send the resumeUrls to the recipient or see Prompt section above
    
        return {
            default_args: {
                foo: "foo",
                bar: true
            }
        }
    }

    Submitted by henri186 796 days ago