Skip to main content

Notifications

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 80

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 Gusti Made Ari Profile Picture
    3,594 on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

    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.

  • ManishS Profile Picture
    80 on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

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

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

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

  • ManishS Profile Picture
    80 on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

    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
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

    Without target = internal AssistEdit is not supported.

  • ManishS Profile Picture
    80 on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

    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
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

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

  • ManishS Profile Picture
    80 on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

    Assist1.jpg

  • ManishS Profile Picture
    80 on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

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

                   {

                       Visible = DocNoVisible;

                       AssistEdit = true;

                       trigger OnAssistEdit()

                       begin

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

                               CurrPage.Update();

                       end;

                   }

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: The Type or method 'AssistEdit' cannot be used for extension development.

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

    field(TEST; TEST)

                   {

                       ApplicationArea = All;

                       AssistEdit = true;

                       trigger OnAssistEdit()                    

                       begin

                         //Code here    

                       end;

                   }

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,165 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans