web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

The Type or method 'AssistEdit' cannot be used for extension development.

(0) ShareShare
ReportReport
Posted on by 86

We are getting the error, is there any change the way AssistEdit is to be used or any new function has been added.

Categories:
I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    The AssistEdit trigger is supported. Maybe can you show your code?

    field(TEST; TEST)

                   {

                       ApplicationArea = All;

                       AssistEdit = true;

                       trigger OnAssistEdit()                    

                       begin

                         //Code here    

                       end;

                   }

  • ManishS Profile Picture
    86 on at

    field("No."; "No.")

                   {

                       Visible = DocNoVisible;

                       AssistEdit = true;

                       trigger OnAssistEdit()

                       begin

                           if AssistEdit(XRec) then --------------> Here the error is coming

                               CurrPage.Update();

                       end;

                   }

  • ManishS Profile Picture
    86 on at

    Assist1.jpg

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Are you using a SaaS environment? AssistEdit is not supported on SaaS.

  • ManishS Profile Picture
    86 on at

    As of now we are using on-prem, but later will move to Saas.

    Its an upgrade from NAV 2018 to 365BC.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Without target = internal AssistEdit is not supported.

  • ManishS Profile Picture
    86 on at

    If its not available on Saas then how standard works, or is there a work around ?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    It depends on what you want to do... if select a file, you should use UploadIntoStream.

  • ManishS Profile Picture
    86 on at

    Sales Header is the base table and it has this AssistEdit Function which we are using.

  • I Gusti Made Ari Profile Picture
    3,600 on at

    Hi  Manish , AssistEdit is Internal function in Sales Header, you can only use function which declared as "External" in your extension.

    You may need to copy the same  function to your custom codeunit  instead of calling from standard object.

    Gbr_5F00_90.png

    If you are working on-premise you can change "Target" to Internal in your app.json to be able to use standard internal function in your extension while you change your solution to custom codeunit for those code calling standard internal function.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans