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 :
Small and medium business | Business Central, N...
Suggested Answer

control addin get data from javascript

(0) ShareShare
ReportReport
Posted on by 5

I can send data from al to javascript using control addin ,  is it possible to send data from javascript to al ????

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Multiple videos here: youtube.com/playlist

    I can recall one with a html notes sending data to AL. Or there is a colour picker video.

  • JJMc Profile Picture
    291 on at

    You only can send data from JavaSript to BC, creating events in JS, and create the correct structure and definition of the ControlAddIn in BC, and using this triggers in the page that you are using this ControlAddin

  • Suggested answer
    matthias_rabus Profile Picture
    160 on at

    Checkout the docs:

    docs.microsoft.com/.../devenv-control-addin-object

    The sample code contains a good example for your case:

    • You need an event in your control addin definition
    • implement the event in your BC page
    • Call the event in javascript (that part is not shown in the sample but it is rather simple)
  • Suggested answer
    YUN ZHU Profile Picture
    95,720 Super User 2025 Season 2 on at

    Hi, just adding others' reply, hope the following also helps.

    https://docs.microsoft.com/en-us/learn/modules/build-control-add-ins/

    pastedimage1650238764426v1.png

    Thanks.

    ZHU

  • Suggested answer
    nourjaa Profile Picture
    5 on at
    bug.png
     

    thank you for your answer, now ,i'm trying to insert autocomplete adress into  business central 

    (https://www.solodev.com/blog/web-design/adding-an-auto-complete-address-field-to-your-forms.stml.

    But, i can't read this script

    <script src="maps.googleapis.com/.../js async defer></script>, it  bugs into  Business central.

    is it possible  to call the script with async defer from  The Scripts property ( reference both external and local scripts ),or is there another solution.

    Thanks.

     

     

  • nourjaa Profile Picture
    5 on at

    thank you for your answer, now ,i'm trying to insert autocomplete adress into  business central 

    (https://www.solodev.com/blog/web-design/adding-an-auto-complete-address-field-to-your-forms.stml.

    But, i can't read this script

    <script src="maps.googleapis.com/.../js async defer></script>, it  bugs into  Business central.

    is it possible  to call the script with async defer from  The Scripts property ( reference both external and local scripts ),or is there another solution.

    Thanks

    7142.bug.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans