GitHub Integration
This guide explains how to integrate GitHub with Microsoft Dynamics 365 Business Central.
You'll learn how to generate a Personal Access Token (PAT), configure Business Central, manage GitHub issues, and sync everything seamlessly.
Overview
Quick intro about GitHub & Business Central integration, focusing on tasks like issue management, syncing, and user token control.
1. How to Generate a GitHub Personal Access Token
Before using GitHub features in Business Central, you must create a Personal Access Token (PAT) to allow Business Central to access your GitHub repositories.
Step-by-Step Guide
-
Log in to GitHub
Go to https://github.com and sign in. -
Go to Developer Settings
- Click your profile picture β Settings
- Scroll down and click Developer settings
- Click your profile picture β Settings
-
Create a Token
- Click Personal access tokens
- Select Tokens (classic)
- Click Generate new token (classic)
- Click Personal access tokens
-
Configure the Token
- Name:
Business Central Integration Token
- Expiration: 30/90 days or
No expiration
- Repository access: Set to
All repositories
- Permissions:
Contents
: Read and writeIssues
: Read and write
- Name:
-
Generate & Save the Token
- Click Generate token
- Copy the token immediately
β οΈ Once you leave the page, the token cannot be retrieved again.
- Click Generate token
π Where to Find the Repository Owner and Repository Name?
In the image below, you can see where to locate the values required for setting up GitHub integration in Business Central:
- π₯ The circled part indicates the Repository Owner β this is your GitHub username or organization name (e.g.,
Bcility
). - π₯ The highlighted rectangle shows the Repository Name β the actual GitHub repository name (e.g.,
BcilitySupport
).
π‘ These values should be entered in Business Central under the GitHub Setup section:
- Repository Owner = Bcility
- Repository Name = BcilitySupport
They are used along with your Personal Access Token (PAT) to allow Business Central to connect and interact with your GitHub repositories.
2. Setup in Business Central
Now that your GitHub is ready, you can integrate it into Business Central.
Open GitHub Setup Page
- Search for
GitHub Setup
in Business Central
GitHub Setup Page
Configuration Section
-
Repository Owner
GitHub username or organization name.
Example:Bcility
Required -
Repository Name
GitHub repository name.
Example:BcilitySupport
Required
Default GitHub Token Section
- GitHub Token
Paste the Personal Access Token (PAT) here.
This token will be used for all GitHub API calls β unless a user-specific token is assigned.
GitHub Users Section (User-Specific Tokens)
This section lets you assign individual GitHub tokens to specific Business Central users.
- If a token is defined here, it will override the default token from above for that user only.
- You can add multiple user-token pairs as needed.
Fields:
-
User Name
Business Central user (e.g.,Bcility
) -
GitHub Token
The personal token generated on GitHub for that specific user.
β οΈ This is helpful when multiple users interact with GitHub from Business Central under their own credentials.
4. π GitHub Issues in Business Central
The GitHub Issues page in Microsoft Dynamics 365 Business Central helps you manage issues from your connected GitHub repository β all in one place.
π View & Fetch Issues
On this page, you can:
- π See all existing issues from the connected GitHub repository
- π Fetch issues from GitHub using the
Fetch Issues
button
If there are any new issues created directly in GitHub (but not yet in Business Central), clicking Fetch Issues
will sync them into the list view.
β This ensures the issue list in Business Central always stays up-to-date with GitHub.
β Creating a New Issue
To create a new GitHub issue, click the + New
button:
This action opens the GitHub Issue Card, where you can enter all the issue details.
π GitHub Issue Card
This page is used to create and manage GitHub Issues directly from Business Central.
It allows you to draft issues, write comments, and sync everything with GitHub.
π Page Overview
GitHub Issue Page in Business Central is divided into several sections to manage issues efficiently:
πΉ Issue Details Section
This section contains fields related to the GitHub Issue itself:
- Title β Title of the issue you are creating.
- Description β A short or detailed explanation of the issue. Clicking the
...
button opens a larger editor for easier input. - State β Shows the current state (e.g., Draft, Open, Closed).
- Assignee β The GitHub username assigned to handle the issue.
- Comments Count β Automatically updates based on the number of published comments.
- Issue ID β A unique identifier assigned once the issue is created and synchronized with GitHub. When you click the three dots (...) next to this field, it opens the corresponding GitHub issue in a new browser tab.
πΈ Comments Section
Here you can view and manage GitHub Issue Comments.
- Body β The actual comment text.
- Status β Indicates whether the comment is Unpublished (local only) or already published to GitHub.
- Created At β Timestamp when the comment was created.
π‘ When you click on body a comment row, a rich text editor opens
In this editor, you can:
- Include images
- Write detailed explanations
π¨οΈ Comment Details (Preview Panel)
The panel on the right provides a live preview of the selected comment β just like on GitHub.
In this preview you can:
- View text
- Display embedded images
- See a fully rendered version of the comment
π Timestamps Section
Tracks when the issue was created, updated, or closed.
- Created At / Updated At β Dates for issue creation and last edit.
- Closed At / Closed By β If the issue is closed, these fields indicate when and by whom.
π Publishing to GitHub
To send your new or updated issue to GitHub, use the Publish to Git and Sync button at the top.
This action:
- Publishes the issue with its description, assignee, and state
- Publishes all unpublished comments
- Syncs issue status back from GitHub
nce you've published an issue to GitHub using the Publish to Git and Sync
button, you can manage its status directly within Business Central β without switching back to GitHub.
How to Open/Close an Issue
-
After the issue is synced with GitHub and has a valid Issue ID.
-
Click:
- Close Issue β to mark it as closed on GitHub.
- Open Issue β to reopen a previously closed issue.
-
After performing either action, click
Publish to Git and Sync
again to synchronize the change with GitHub.
β Example Workflow
- Create an issue β Click
Publish to Git and Sync
- Click
Close Issue
- Click
Publish to Git and Sync
again
β Status is updated to Closed on GitHub automatically.
π₯οΈ How It Looks: Business Central vs GitHub
This section shows the visual difference between how issues appear in Business Central and GitHub.
π In Business Central
Issues are displayed in a clean, form-based layout with grouped sections (details, comments, timestamps). You can edit everything inline and preview comments before publishing.
π In GitHub
The same issue appears using GitHubβs standard layout β markdown rendered, user avatars shown, and real-time updates visible.
π Changes stay in sync: edit in either system and sync updates with a single click.
π Summary
This page is a fully integrated tool for managing GitHub Issues from within Business Central. It allows users to:
- Create new issues
- Track and assign them
- Create comment
- Sync everything with GitHub seamlessly
5. Test the Integration
After setup, test the integration with one of the following actions:
- β Create and publish a test issue
- π Add and sync a comment
- π Use the βSync from GitHubβ action to verify access
- β Close or reopen an issue from Business Central
If something fails:
- π Double-check Repository Owner and Repository Name
- π Ensure PAT has valid permissions
- π Confirm the token is not expired
- βοΈ Make sure required scopes (
repo
,issues
) are enabled
β οΈ Notes
- PATs are sensitive β do not share or expose them.
- User tokens override the default token in GitHub Setup.
- Monitor token expiration dates to avoid disruptions.
β Quick Recap
- Create a GitHub Personal Access Token (PAT)
- Configure GitHub Setup in Business Central
- Assign per-user tokens in GitHub Users
- Test the connection by publishing and syncing issues and comments