Server Connect from Server Connect

I would like to simplify my SC files and thought of an idea that might be of use.

I seem to end up with lots of SC actions with steps that are the same as others (updating a user, updating an address, getting user details, adding a transaction, listing transactions

I appreciate that SC files can be added as routes with parameters however I think it would be useful if they could be selected within another Server Connect (not just adding them as an API as it means the Schema and input paramters should be automatically found).

That way, for example, setting up a new user could call a ‘New User’ SC that then has SC call steps for post_user, post_address, post_account etc. to set the account up.

An ‘Update user details’ SC could include post_user, post_address

An ‘Update subscription’ SC could include post_account, post_transaction

Thinking out loud: Could a custom module be created for this?

1 Like

I agree but if lots of people would find it useful, it would be better being native than custom.