Zapier CLI - Setting the value for a computed input field

In my Zapier CLI application, I have defined a resource that includes input fields in its create specification. One of these fields is named ‘account_key’ and is marked as computed. I retrieve its value from a prior API request. How can I effectively assign the fetched value to ‘account_key’ during the resource creation process?

create: {
    display: {
        label: 'Add New Client',
        description: 'Creates a new client entry.',
    },
    operation: {
        inputFields: [
            {key: 'identifier', required: true, type: 'integer', label: 'User Identifier', dynamic: 'user.id.email'},
            {key: 'account_id', required: true, type: 'string', label: 'Account ID', computed: true},
            {key: 'location', required: true, type: 'text', label: 'Primary Address'}
        ],
        perform: addNewClient,
        sample: sampleData
    },
},

computd fields cn get tricky, but in Zapier wht you can do is utilize the perform method itself to set these fields. Implement logic inside addNewClient tht fetches and assigns accouunt_key using data from ur prior API request. cl this method before the create operation.

It’s important to understand that computed fields are not intended to receive direct input from the user. Instead, they should be populated programmatically. In your case, you can modify the addNewClient function to include an API call that fetches the necessary ‘account_key’ value. After retrieving the data, you can map this value to the ‘account_key’ field. Make sure this is done within the perform method so the field gets automatically populated during the resource creation process.