---
title: "createBlog"
canonical: "https://support.appfire.com/space/PSCONF/15304689/createBlog"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | createBlog(spaceKey, blogTitle, blogContent) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Creates a blog based on the provided arguments.

Creates a blog based on the provided arguments.

## Return Type

**number **

The blogID of the newly created blog.

## Example

```javascript
string spaceKey = "PSCONF";
string blogTitle = "New BlogPost";
string blogContent = "<p>This blog was created by Power Scripts!<p>";
number newBlog = createBlog(spaceKey, blogTitle, blogContent);
```

## See also

> Macro (contentbylabel)