Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

COC issue on ISV

(0) ShareShare
ReportReport
Posted on by 32

Please see the attached image. I have faced the problem of creating COC with 19 parameters of ISV. So this type of issue was not faced before.

1602.COC-issue.png

  • RE: COC issue on ISV

    Yeah, But we all know that event handler is not the best practice in that case event handler is the only solution, but I need to find out why COC is not created for that method :(

    That the reason is to raise question here!

    Thank you both of you

    Really appreciate your response!

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: COC issue on ISV

    But there is no such documentation available to confirm this.

    Thanks,

    Girish S.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: COC issue on ISV

    Your CoC method looks fine, as Girish suggested you can write event handler and if build pass then all good.With 19 parameters event handler is better choice in terms of code readability.

  • RE: COC issue on ISV

    Yeah, I think so but I need official documentation about that to share with our community If there is nothing wrong in COC.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: COC issue on ISV

    There is no problem with the implementation of the COC you have written.

    My suggestion is methods parameter is too long in your original method. May be there is some restriction in the number of parameters when using COC, but I am not sure on that.

    Thanks,

    Girish S.

  • RE: COC issue on ISV

    Yes, This one is, I already do that for Azure DevOps build passed!

    But I want to figure out what is the issue in COC and What am I doing wrong in COC?

    Is there any limitation or something else?

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: COC issue on ISV

    Then the only solution will be adding Pre and Post event handler for the method "AutoCreateDebit" to meet your scenario.

    Thanks,

    Girish S.

  • RE: COC issue on ISV

    pastedimage1683546916865v1.png

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: COC issue on ISV

    I don't think there is limitation in the method arguments while using COC.

    One option will be reducing the parameter to below 17 by changing the original logic and check.

    Another option will be try passing only the required parameters, omitting the optional parameters in the COC.

    Thanks,

    Girish S.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans