Ash FrameworkAF
Ash Framework2mo ago
2 replies
pistrie

How do I call an action with a predetermined argument from a code interface?

I'm creating a personal project with AshDoubleEntry, and I want to create a code interface on the Ledger domain to get an Account with a specific identifier.

I currently have the following, but I'm not sure what to do to further? How do i define this hardcoded argument?

      define :get_main_account do
        action :by_identifier
        get? true
      end
Was this page helpful?